/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package experiments.Logging;


import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;

/**
 *
 * @author o.rybyanskyy
 */
public class MainApplication {
    
    static Logger logger = Logger.getRootLogger();
    
    private static void initLogger(){
        BasicConfigurator.configure();
    }
    
    
    public static void doAction(){
        initLogger();
        
        Printer p = new Printer("Very new printer");
        logger.debug("new Printer object created.");
        
        p.print();
        logger.info("printing completed");
    }
    
}
